package com.care.modules.health.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.care.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 健康档案
 * @Author: jeecg-boot
 * @Date:   2023-05-10
 * @Version: V1.0
 */
@Data
@TableName("tb_health")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="tb_health对象", description="健康档案")
public class Health {
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private java.lang.String id;
	/**健康信息编号*/
	@Excel(name = "健康信息编号", width = 15)
    @ApiModelProperty(value = "健康信息编号")
	private java.lang.String code;
	/**老人名称*/
	@Excel(name = "老人名称", width = 15)
    @ApiModelProperty(value = "老人名称")
	private java.lang.String username;
	/**单元楼门号*/
	@Excel(name = "单元楼门号", width = 15)
    @ApiModelProperty(value = "单元楼门号")
	private java.lang.String address;
	/**身份证号码*/
	@Excel(name = "身份证号码", width = 15)
    @ApiModelProperty(value = "身份证号码")
	private java.lang.String idcard;
	/**经度*/
	@Excel(name = "经度", width = 15)
    @ApiModelProperty(value = "经度")
	private java.lang.Double lon;
	/**纬度*/
	@Excel(name = "纬度", width = 15)
    @ApiModelProperty(value = "纬度")
	private java.lang.Double lat;
	/**头像*/
	@Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "头像")
	private java.lang.String avatar;
	/**生日*/
	@Excel(name = "生日", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生日")
	private java.util.Date birthday;
	/**性别(0-默认未知,1-男,2-女)*/
	@Excel(name = "性别(0-默认未知,1-男,2-女)", width = 15)
	@Dict(dicCode = "sex")
    @ApiModelProperty(value = "性别(0-默认未知,1-男,2-女)")
	private java.lang.Integer sex;
	/**电话*/
	@Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "电话")
	private java.lang.String phone;
	/**状态(1-正常,2-冻结)*/
	@Excel(name = "状态(1-正常,2-冻结)", width = 15)
    @ApiModelProperty(value = "状态(1-正常,2-冻结)")
	private java.lang.Integer status;
	/**删除状态(0-正常,1-已删除)*/
	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
	private java.lang.Integer delFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**可穿戴设备实例id*/
	@Excel(name = "可穿戴设备实例id", width = 15)
    @ApiModelProperty(value = "可穿戴设备实例id")
	private java.lang.String deviceId;
	/**状态(0-未激活，1-正常,2-未穿戴，3-围栏外，4-离线状态)*/
	@Dict(dicCode = "device_status")
	@Excel(name = "状态(0-未激活，1-正常,2-未穿戴，3-围栏外，4-离线状态)", width = 15)
    @ApiModelProperty(value = "状态(0-未激活，1-正常,2-未穿戴，3-围栏外，4-离线状态)")
	private java.lang.Integer deviceStatus;
	/**心率值*/
	@Excel(name = "心率值", width = 15)
    @ApiModelProperty(value = "心率值")
	private java.lang.Integer heartValue;
	/**血糖值*/
	@Excel(name = "血糖值", width = 15)
    @ApiModelProperty(value = "血糖值")
	private java.lang.Double bloodSugar;
	/**血氧*/
	@Excel(name = "血氧", width = 15)
    @ApiModelProperty(value = "血氧")
	private java.lang.Double bloodOxygen;
	/**体温*/
	@Excel(name = "体温", width = 15)
    @ApiModelProperty(value = "体温")
	private java.lang.Double temperature;
	/**收缩压*/
	@Excel(name = "收缩压", width = 15)
    @ApiModelProperty(value = "收缩压")
	private java.lang.Double highPressure;
	/**舒张压*/
	@Excel(name = "舒张压", width = 15)
    @ApiModelProperty(value = "舒张压")
	private java.lang.Double lowPressure;
	/**总睡眠时长*/
	@Excel(name = "总睡眠时长", width = 15)
    @ApiModelProperty(value = "总睡眠时长")
	private java.lang.Double sleepTotal;
	/**深度睡眠时长*/
	@Excel(name = "深度睡眠时长", width = 15)
    @ApiModelProperty(value = "深度睡眠时长")
	private java.lang.Double sleepDeep;
	/**浅度睡眠*/
	@Excel(name = "浅度睡眠", width = 15)
    @ApiModelProperty(value = "浅度睡眠")
	private java.lang.Double sleepLight;
	/**身高（cm）*/
	@Excel(name = "身高（cm）", width = 15)
    @ApiModelProperty(value = "身高（cm）")
	private java.lang.Double height;
	/**体重（kg）*/
	@Excel(name = "体重（kg）", width = 15)
    @ApiModelProperty(value = "体重（kg）")
	private java.lang.Double weight;
	/**运动计步*/
	@Excel(name = "运动计步", width = 15)
    @ApiModelProperty(value = "运动计步")
	private java.lang.Integer stepValue;
	/**医生id*/
	@Excel(name = "医生id", width = 15)
    @ApiModelProperty(value = "医生id")
	private java.lang.String doctorId;
	/**护士id*/
	@Excel(name = "护士id", width = 15)
    @ApiModelProperty(value = "护士id")
	private java.lang.String nurseId;
	/**护理等级（0~3：特级护理、一级护理、二级护理、三级护理）*/
	@Excel(name = "护理等级（0~3：特级护理、一级护理、二级护理、三级护理）", width = 15)
    @ApiModelProperty(value = "护理等级（0~3：特级护理、一级护理、二级护理、三级护理）")
	@Dict(dicCode = "care_level")
	private java.lang.Integer careLevel;
	/**主述*/
	@Excel(name = "主述", width = 15)
    @ApiModelProperty(value = "主述")
	private java.lang.String chiefComplaint;
	/**现病史*/
	@Excel(name = "现病史", width = 15)
    @ApiModelProperty(value = "现病史")
	private java.lang.String historyOfPresentIllness;
	/**现病治疗情况*/
	@Excel(name = "现病治疗情况", width = 15)
    @ApiModelProperty(value = "现病治疗情况")
	private java.lang.String historyOfTreatment;
	/**既往史*/
	@Excel(name = "既往史", width = 15)
    @ApiModelProperty(value = "既往史")
	private java.lang.String pastHistory;
	/**过敏史*/
	@Excel(name = "过敏史", width = 15)
    @ApiModelProperty(value = "过敏史")
	private java.lang.String allergies;
	/**评估诊断结果*/
	@Excel(name = "评估诊断结果", width = 15)
    @ApiModelProperty(value = "评估诊断结果")
	private java.lang.String diagnosis;

	@ApiModelProperty(value = "所属机构")
	private java.lang.String sysOrgCode;
}
